package com.baizhi.jishi.dao;

import com.baizhi.jishi.entity.Patient;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PatientDao {
    List<Patient> showPage(@Param("page") int page, @Param("limit") int limit, @Param("name") String name);

    int getCount(@Param("name") String name);

    int addPatient(Patient patient);

    int deletePatient(int id);

    Patient selectOne(int id);

    int updatePatient(Patient patient);

    int deleteSome(int[] ids);
}
